package com.example.blog.service;

import com.example.blog.pojo.tag;
import com.example.blog.pojo.type;
import com.github.pagehelper.Page;
import org.apache.ibatis.javassist.NotFoundException;
import org.springframework.stereotype.Service;

@Service
public interface tagService {
    void saveTag(tag tag);
    tag getTag(Integer id);
    tag getTag(String name);
    Page<tag> listTag();
    Page<tag> list();
    void updateTag(Integer id,String name) throws NotFoundException;
    void deleteTag(Integer id);
    Integer getCount();
}
